import curses 
import curses.wrapper #not being used right now

from twisted.internet import reactor
from twisted.internet.protocol import ClientFactory
from twisted.protocols.basic import LineReceiver
from twisted.python import log

from Putter.PutterClient import PutterClient

class PutterFactory(ClientFactory):
    protocol = PutterClient

    def __init__(self, screen):
        self.putter = self.protocol(screen)

    def buildProtocol(self, addr=None):
        return self.putter

    def clientConnectionLost(self, conn, reason):
        pass

